﻿using System;
using System.Collections.Generic;
using System.Text;
using WordService.Model;

namespace WordService.Data.IDAL
{
    /// <summary>
    /// 机构插入的数据层接口
    /// </summary>
    public interface IInstitutionDAL
    {
        /// <summary>
        /// 插入机构的数据层接口
        /// </summary>
        /// <param name="name">该机构的名称</param>
        /// <param name="sequence">该机构的顺序</param>
        /// <param name="articleID">对应文章的ID</param>
        /// <returns>返回插入的机构的ID</returns>
        Int64 InsertInstitution(String name, Int32 sequence, Int64 articleID);
        ///// <summary>
        ///// 保存机构的数据层接口
        ///// </summary>
        ///// <param name="name">该机构的名称</param>
        ///// <param name="sequence">该机构的顺序</param>
        ///// <param name="articleID">对应文章的ID</param>
        ///// <returns>返回保存成功的机构ID</returns>
        //Int64 SaveInstitution(String name, Int32 sequence, Int64 articleID);

        /// <summary>
        /// 查询机构列表需要的内容
        /// </summary>
        /// <param name="keywordName">关键字名</param>
        /// <param name="authorName">作者名</param>
        /// <param name="year">输入年份</param>
        /// <returns></returns>
        IList<Institution> QueryByCondition(String keywordName, String authorName, String year);
    }
}
